package indi.kider.server.applet.service;

import indi.kider.common.model.apartment.*;
import indi.kider.server.applet.model.User;
import pers.vankid.common.model.base.CommonResponse;

import java.util.List;

public interface NewLockService {
    /**
     * 根据公寓id获取锁具信息
     * @param houseId
     * @return
     */
    DevLock getLockInfo(String houseId) throws Exception;

    String delLockInfo(String houseId) throws  Exception;

    String updateLockInfo(DevLock devLock) throws  Exception;

    String addCard(DevLockCard devLockCard, User user) throws Exception;

    CommonResponse getCardInfo(DevLockCard devLockCard, User user) throws Exception;

    String addFingerprint(DevLockFingerPrint devLockFingerPrint, User user) throws Exception;

    CommonResponse queryFingerPrint(DevLockFingerPrint devLockFingerPrint, User user) throws Exception;

    String addLockVersionInfo(DevLockVersion devLockVersion, User user) throws Exception;

    List<DevLockVersion> queryLockVersionInfo(DevLockVersion devLockVersion, User user) throws Exception;

    String addLockPassword(DevLockPassword devLockPassword, User user) throws Exception;

    CommonResponse queryLockPassword(DevLockPassword devLockPassword, User user) throws Exception;

    String delFingerprint(DevLockFingerPrint devLockFingerPrint, User user);

    String delLockPassword(DevLockPassword devLockPassword, User user);

    String delCard(DevLockCard devLockCard, User user)  throws Exception;
}
